export default {
  defaults(props) {
    return {
    }
  },

  async timeline(ctx, props){
    // props == {jdgcId: xxxxxxxxxxxxxxxxxxxxxxxxxxxx}
    const content = await
      ctx.fn.DB.xmmx.info.timeline({Authorization: ctx.getProps().token, ...props}).catch(
        (error) => {
          console.log(error);
        }
      );

    if (content) {
      ctx.setState(
        React.addons.update(ctx.getState(), {
          steps: {
            $set: content
          },
        }));
    }
  }

}
